Telegram Group & Telegram Channel
🖥 Почему стоит избегать throw ex в C#/.NET

Исключения играют важную роль в C#/.NET приложениях, помогая поддерживать их стабильность. Важно использовать throw; вместо throw ex; в блоках catch, чтобы сохранить исходный стек вызовов и упростить отладку. Использование throw ex; сбрасывает стек, усложняя устранение ошибок.

Подробности: https://nilebits.hashnode.dev/c-net-exception-handling-why-you-should-avoid-using-throw-ex-in-catch-blocks

#en
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/csharp_1001_notes/537
Create:
Last Update:

🖥 Почему стоит избегать throw ex в C#/.NET

Исключения играют важную роль в C#/.NET приложениях, помогая поддерживать их стабильность. Важно использовать throw; вместо throw ex; в блоках catch, чтобы сохранить исходный стек вызовов и упростить отладку. Использование throw ex; сбрасывает стек, усложняя устранение ошибок.

Подробности: https://nilebits.hashnode.dev/c-net-exception-handling-why-you-should-avoid-using-throw-ex-in-catch-blocks

#en

BY C# 1001 notes




Share with your friend now:
tg-me.com/csharp_1001_notes/537

View MORE
Open in Telegram


C 1001 notes Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

C 1001 notes from ye


Telegram C# 1001 notes
FROM USA